package com.paic.mario.dao;

import java.util.List;
import java.util.Map;

import com.paic.mario.domain.CollectedObject;
import com.paic.mario.domain.ServiceTempletVo;

public interface SystemMapper {

	List<Map<String,Object>>  getSystemBySeriesId(int series_id);
	
	List<Map<String,Object>>  getObjectBySystemId(int system_id);
	
	List<Map<String,Object>>  getServiceByObjectId(int object_id);
	
	List<Map<String,Object>>  getTempletByObjectId(int object_id);
	
	List<Map<String,Object>>  getTempletByObjectIds(List<Integer> list);
	
	List<Map<String,Object>>  getSelectedTempletByObjectId(int object_id);
	
	List<Map<String,Object>>  getIndexByServiceId(int object_id);

	int addServiceTemplet(List<Map> list);

	int delServiceTemplet(Map map);

	List<Map<String, Object>> getAppObjectBySystemId(int system_id);

	List<Map<String, Object>> getServiceObjectByAppId(int app_id);
	
	String   getTempContent(int templet_id);
	
	List<Map<String,Object>>  getTempProperties(List<String> list);

	int updateServiceTempletConfig(Map map);

	String getTempJsonText(int id);

	int addOneServiceTemplet(ServiceTempletVo insert_Vo);

	int updateOneServiceIndextemplateid(Map map);

	Map getServiceTempletConfig(int id);
	
	int getTempId(int id);
	
	List<Map<String,Object>>  getMasterBySystemId(int system_id);
	
    int stopMasterTemplet(int obj_id);
	
	int startMasterTemplet(int obj_id);
	
	List<Map<String,Object>> getUnuseTmp(int obj_id);

	List<Map<String, Object>> getHostInfoByObjectId(int object_id);

	List<Map<String, Object>> getPropertiesInfoByObjectId(Map obj_map);
	
    int addObject(CollectedObject cobj);
	
	int updateObject(CollectedObject cobj);
	
	int delObject(int object_id);
	
	List<Map<String,Object>>  getHostTemplet(List<Integer> object_ids);

//	List<Map<String, Object>> getHostInfoByHostName(String host_name);
	List<Map<String, Object>> getHostInfoByHostName(Map map);

	List<Map<String, Object>> getHostPropertiesByHostName(Map obj_map);

	Long getIndexTempId(int object_id);

	List<Map<String, Object>> getIndexPropertyByIndexTempId(String indexTempId);
	
	List<Map<String,Object>> getObjProperties(int type_id);
	
	int addObjectProperties(List<Map<String,Object>> propertiesList);
}
